package com.rankeiot.platform.config;

import com.rankeiot.core.config.ControlType;
import com.rankeiot.core.config.IConfigItem;
import com.rankeiot.core.config.Item;

/**
 * 系统配置项
 * @author desire
 */
public enum PlatformConfig implements IConfigItem {
   @Item(title="系统名称",en = "System Name",defaultValue = "Easy Boot",front = true)
   SystemName,
   @Item(title="默认语言",en = "Default Language",type = ControlType.Select,dataUri = "data:[{\"key\":\"zh\",\"title\":\"中文\"},{\"key\":\"en\",\"title\":\"English\"}]")
   DefaultLang,
   @Item(title="系统Logo",en = "Logo",front = true)
   LogoUrl,
   @Item(title="版权信息",en = "Copyright", front = true)
   CopyRight,
   @Item(title="登录页背景",en = "Login Background Image",front = true)
   LoginBgImg,
   @Item(title="登录页左侧背景",en = "Login Content Left Background Image",front = true)
   LoginLeftImg,
   @Item(title="顶部工具条",en = "Header ToolBar",front = true,memo = "请填写Vue组件路径")
   TopBar,
   @Item(title="跨域设置",en = "Cross Domain")
   DomainAllow,
   @Item(title="账户安全密码",en = "Safe Password",type = ControlType.Switch,memo = "开启弱密码检测")
   PasswordCheck,
   @Item(title="文件保护",en = "File Protect",type = ControlType.Switch,memo = "文件上传后是否需要登录才能查看",front = true)
   FileSec,
   @Item(title="启用页面调试",en = "Enable Page Debug",type = ControlType.Switch,front = true)
   Debug,
   @Item(title = "用户自动注册",en = "Enable Auto Register User",type = ControlType.Switch,defaultValue = "false")
   AUTO_REG
}
